package com.woniu.zsd.waste.service;

import com.github.pagehelper.PageInfo;
import com.woniu.zsd.waste.entity.WasteType;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;
import zsd.waste.form.AddWasteTypeForm;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
public interface IWasteTypeService extends IService<WasteType> {

    List<WasteType> selWasteType();

    int insertWasteType(AddWasteTypeForm awtf);

    int updateWasteType(WasteType wasteType);

    int deleteWasteType(Integer id);

    WasteType getWasteTypeById(Integer id);

    WasteType getWasteTypeByName(String name);

    List<WasteType> getTop5SearchedWasteTypes();
}
